Skip to content

Unit tests for location_table access pattern#29

Merged
rockdaboot merged 2 commits intoelastic:mainfrom
fandreuz:test-location-table-access
Jul 8, 2025
Merged

Unit tests for location_table access pattern#29
rockdaboot merged 2 commits intoelastic:mainfrom
fandreuz:test-location-table-access

Conversation

@fandreuz
Copy link
Copy Markdown
Contributor

@fandreuz fandreuz commented Jul 2, 2025

As discussed under #27, I'm adding some unit tests for the updated access pattern to location_table.

I introduced a new function collect_frame_list whose job is to access the proper indexes in location_table and build a Vec<Frame>. I made it a generic to simplify writing unit tests.

@fandreuz fandreuz requested a review from a team as a code owner July 2, 2025 23:16
Comment thread src/collector/otlp/service.rs
Comment thread src/collector/otlp/service.rs
Comment thread src/collector/otlp/service.rs Outdated
@rockdaboot rockdaboot closed this Jul 4, 2025
@rockdaboot rockdaboot reopened this Jul 4, 2025
@fandreuz
Copy link
Copy Markdown
Contributor Author

fandreuz commented Jul 8, 2025

@rockdaboot is this good to go?

Copy link
Copy Markdown
Contributor

@rockdaboot rockdaboot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on it, lgtm.

@rockdaboot rockdaboot merged commit c89d4b7 into elastic:main Jul 8, 2025
1 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants